package com.invite.me.beans.adpater;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.CircleCrop;
import com.bumptech.glide.request.RequestOptions;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.invite.me.R;
import com.invite.me.beans.bilnddatabean.BlindDataBean;

import java.util.List;

public class BusinessAdpater extends BaseQuickAdapter<BlindDataBean,BaseViewHolder>

    {

    public BusinessAdpater(int layoutResId, @Nullable List<BlindDataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BlindDataBean item) {

        RequestOptions options = new RequestOptions()
                .placeholder(R.mipmap.chahao);//占位图
        Glide.with(mContext)
                .load(item.getUil())
                .apply(options)
                .apply(RequestOptions.bitmapTransform(new CircleCrop()))
                .into((ImageView) helper.getView(R.id.touxiangimage));

    }
    }